<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>用户管理</title>
            <script type="text/javascript" src="../jquery-1.8.3.js"></script>
            <script type="text/javascript">
                $(function () {

                });
            </script>
        </head>
        <body>
            <a href="add">添加用户</a>
            <a href="list">用户列表</a>
            <table width="900" align="center" border="1">
                <tr>
                    <td>ID</td>
                    <td>username</td>
                    <td>nickname</td>
                    <td>openid</td>
                    <td>status</td>
                    <td>头像</td
                </tr>

                <c:forEach items="${users}" var="user">
                    <tr>
                        <td>${user.id}</td>
                        <td>${user.username}[<a href="update/${user.id}">更新</a>&nbsp;<a href="delete/${user.id}">删除</a>]</td>
                        <td>${menu.nickname}</td>
                        <td>${menu.openid}</td>
                        <td>${menu.status}</td>
                        <td><img width="120" src="${user.imgUrl}"/></td>
                    </tr>
                </c:forEach>
            </table>
        </body>
    </html>
